package com.mccloud.mini.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author 宋发准
 * @since 2020-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="YbGoods对象", description="商品")
@TableName("yb_goods")
public class YbGoods implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "外部商品id")
    @TableField("out_product_id")
    private String outProductId;

    @ApiModelProperty(value = "商品详情页面展示名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "照片")
    @TableField("pic")
    private String pic;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "划线价")
    @TableField("market_price")
    private String marketPrice;

    @ApiModelProperty(value = "售价")
    @TableField("discount_price")
    private String discountPrice;

    @ApiModelProperty(value = "一级分类")
    @TableField("first_cid")
    private String firstCid;

    @ApiModelProperty(value = "二级分类")
    @TableField("second_cid")
    private String secondCid;

    @ApiModelProperty(value = "三级分类")
    @TableField("third_cid")
    private String thirdCid;

    @ApiModelProperty(value = "规格id")
    @TableField("spec_id")
    private String specId;

    @ApiModelProperty(value = "主规格图片")
    @TableField("spec_pic")
    private String specPic;

    @ApiModelProperty(value = "重量")
    @TableField("weight")
    private String weight;

    @ApiModelProperty(value = "属性")
    @TableField("product_format")
    private String productFormat;

    @ApiModelProperty(value = "支付方式")
    @TableField("pay_type")
    private String payType;

    @ApiModelProperty(value = "客服手机")
    private String mobile;


}
